package me.ingxin.android.sample.lego.web

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import me.ingxin.android.router.annotaions.Route
import me.ingxin.android.sample.lego.databinding.ActivityWebBinding

/**
 * Created by ingxin on 2022/4/29
 */
@Route("/act/web")
class WebActivity : AppCompatActivity() {

    private val binding by lazy { ActivityWebBinding.inflate(layoutInflater) }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(binding.root)
        intent?.getStringExtra("url")?.let { binding.web.loadUrl(it) }
    }


}